const routes = [
	{
		path: '/',
		component: () => import('../layouts/DefaultLayout.vue'),
		children: [
			{
				path:'guide',
				component: () => import('../layouts/Empty.vue'),
				meta:{
					title:'手册'
				},
				children:[
					{
						path: 'introduction',
						component:() => import('../pages/guide/Introduction.vue'),
						meta:{
							title:'简介'
						}
					}
				]
			},
			{
				path: 'index',
				component: () => import('../pages/Index.vue'),
				meta:{
					title:'首页'
				}
			},
			{
				path: 'display',
				component:() => import('../pages/Display.vue')
			}
		],
	},
];

// Always leave this as last one
if (process.env.MODE !== 'ssr') {
	routes.push({
		path: '*',
		component: () => import('pages/Error404.vue'),
	});
}

export default routes;
